package com.tobby.siia.fundamentals;

import org.w3c.dom.stylesheets.MediaList;

public class BookingService {

	private final BookingDao bookingDao;

	public BookingService(BookingDao bookingDao) {
		this.bookingDao = bookingDao;
	}

	public MealPreference populatePreference(MealPreference mealPreference) {
		Booking booking = bookingDao.getBookingById(mealPreference.getBookingId());
		mealPreference.setFlightReference(booking.getFlightRef());
		return mealPreference;
	}

}
